'use strict';
import types from '../actiontype/ActionTypes';

const initialState = {
    score : 100,
    repairCount: 0,
    complaintCount: 0
}

export default function cycle(state = initialState, action){
    switch (action.type) {
        case types.CYCLE_STATUS_CHANGE:
            return Object.assign({}, state, {
                score: action.score,
                repairCount: action.repairCount,
                complaintCount: action.complaintCount
            });
        default:
            return state;
    }
}
